package com.nulldev.util.networking.async2.tcp.listeners.exceptions;

import com.nulldev.util.networking.async2.tcp.listeners.TCPClientConnection;

public class ClientIsDisconnectedException extends Exception {

	private static final long serialVersionUID = -3138119365297253871L;
	private final TCPClientConnection fClient;

	public ClientIsDisconnectedException(TCPClientConnection client) {
		super("Client is disconnected.");
		fClient = client;
	}

	/**
	 * Returns the disconnected client.
	 *
	 * @return the disconnected client.
	 */
	public final TCPClientConnection getClient() {
		return fClient;
	}
}